package com.edu.base.ums.metadatavalue.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 元数据管理对象 sysm_metadatavalue
 * 
 * @author admin
 * @date 2021-05-11
 */
public class SysmMetadatavalue extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 元数据ID */
    @Excel(name = "元数据ID")
    private String metadata;

    /** 编码 */
    @Excel(name = "编码")
    private String dNum;

    /** 名称 */
    @Excel(name = "名称")
    private String dName;

    /** 值 */
    @Excel(name = "值")
    private Long value;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long sortNum;

    /** 层级 */
    @Excel(name = "层级")
    private Long level;

    /** 父节点 */
    @Excel(name = "父节点")
    private String pId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记(0:正常 1:删除 ) */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMetadata(String metadata) 
    {
        this.metadata = metadata;
    }

    public String getMetadata() 
    {
        return metadata;
    }
    public void setdNum(String dNum) 
    {
        this.dNum = dNum;
    }

    public String getdNum() 
    {
        return dNum;
    }
    public void setdName(String dName) 
    {
        this.dName = dName;
    }

    public String getdName() 
    {
        return dName;
    }
    public void setValue(Long value) 
    {
        this.value = value;
    }

    public Long getValue() 
    {
        return value;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setpId(String pId) 
    {
        this.pId = pId;
    }

    public String getpId() 
    {
        return pId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("metadata", getMetadata())
            .append("dNum", getdNum())
            .append("dName", getdName())
            .append("value", getValue())
            .append("sortNum", getSortNum())
            .append("remark", getRemark())
            .append("level", getLevel())
            .append("pId", getpId())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
